﻿/* Write a program that allocates array of 20 integers and initializes each element by its index multiplied by 5. 
* Print the obtained array on the console. */

using System;

class Allocate
{
    static void Main()
    {
        //initialize a 20-element array
        int[] nums = new int[20];

        //assign to each element a value equal to the multiplication of its index by 5
        for (int i = 0; i < nums.Length; i++)
        {
            nums[i] = i * 5;
            Console.WriteLine("Element {0}: {1}", i+1, nums[i]);
        }
    }
}
